<?php 
header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-excel");
header('Content-Disposition: attachment; filename=grouperrors().csv');
header("Content-Transfer-Encoding: binary");


foreach ($errors as $error):
echo iconv('UTF-8', 'Windows-1251', implode(';', $error));
echo '
	';
endforeach;
?>